<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8"/>
	<title><?php echo $this->pageTitle; ?></title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
	<meta name="description" content="Công ty Cổ phần Mới Nhất (Moi1 J.S.C)"/>
	<meta name="author" content="Mới1 JSC"/>
    <meta name="website" content="http://moinhat.vn"/>
	<!-- The styles -->
    <link id="bs-css" href="<?php echo ADMIN_CSS_FOLDER;?>bootstrap-cerulean.css" rel="stylesheet"/>
	<style type="text/css">
	  body {
		padding-bottom: 40px;
	  }
	  .sidebar-nav {
		padding: 9px 0;
	  }
	</style>
    <?php
        Yii::app()->getClientScript()->registerCssFile(ADMIN_CSS_FOLDER.'bootstrap-responsive.css');
        Yii::app()->getClientScript()->registerCssFile(ADMIN_CSS_FOLDER.'charisma-app.css');
        Yii::app()->getClientScript()->registerCssFile(ADMIN_CSS_FOLDER.'jquery-ui-1.8.21.custom.css');
        Yii::app()->getClientScript()->registerCssFile(ADMIN_CSS_FOLDER.'fullcalendar.css');
        Yii::app()->getClientScript()->registerCssFile(ADMIN_CSS_FOLDER.'fullcalendar.print.css','print');
        Yii::app()->getClientScript()->registerCssFile(ADMIN_CSS_FOLDER.'chosen.css');
        Yii::app()->getClientScript()->registerCssFile(ADMIN_CSS_FOLDER.'uniform.default.css');
        Yii::app()->getClientScript()->registerCssFile(ADMIN_CSS_FOLDER.'colorbox.css');
        Yii::app()->getClientScript()->registerCssFile(ADMIN_CSS_FOLDER.'jquery.cleditor.css');
        Yii::app()->getClientScript()->registerCssFile(ADMIN_CSS_FOLDER.'jquery.noty.css');
        Yii::app()->getClientScript()->registerCssFile(ADMIN_CSS_FOLDER.'noty_theme_default.css');
        Yii::app()->getClientScript()->registerCssFile(ADMIN_CSS_FOLDER.'elfinder.min.css');
        Yii::app()->getClientScript()->registerCssFile(ADMIN_CSS_FOLDER.'elfinder.theme.css');
        Yii::app()->getClientScript()->registerCssFile(ADMIN_CSS_FOLDER.'jquery.iphone.toggle.css');
        Yii::app()->getClientScript()->registerCssFile(ADMIN_CSS_FOLDER.'opa-icons.css');
        Yii::app()->getClientScript()->registerCssFile(ADMIN_CSS_FOLDER.'uploadify.css');
    ?>
	<!-- The HTML5 shim, for IE6-8 support of HTML5 elements -->
	<!--[if lt IE 9]>
	  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->
	<!-- The fav icon -->
	<link rel="shortcut icon" href="<?php echo IMG_ICONS_FOLDER; ?>favicon.ico"/>	
</head>
<body>
<!-- topbar starts -->
	<div class="navbar">
		<div class="navbar-inner">
			<div class="container-fluid">
				<a class="btn btn-navbar" data-toggle="collapse" data-target=".top-nav.nav-collapse,.sidebar-nav.nav-collapse">
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</a>
				<a class="brand" href="#">
                    <span>MớiNhất.vn</span>
                </a>
				<!-- theme selector starts -->
				<div class="btn-group pull-right theme-container" >
					<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
						<i class="icon-tint"></i><span class="hidden-phone">Đổi giao diện</span>
						<span class="caret"></span>
					</a>
					<ul class="dropdown-menu" id="themes">
						<li><a data-value="classic" href="#"><i class="icon-blank"></i> Classic</a></li>
						<li><a data-value="cerulean" href="#"><i class="icon-blank"></i> Cerulean</a></li>
						<li><a data-value="cyborg" href="#"><i class="icon-blank"></i> Cyborg</a></li>
						<li><a data-value="redy" href="#"><i class="icon-blank"></i> Redy</a></li>
						<li><a data-value="journal" href="#"><i class="icon-blank"></i> Journal</a></li>
						<li><a data-value="simplex" href="#"><i class="icon-blank"></i> Simplex</a></li>
						<li><a data-value="slate" href="#"><i class="icon-blank"></i> Slate</a></li>
						<li><a data-value="spacelab" href="#"><i class="icon-blank"></i> Spacelab</a></li>
						<li><a data-value="united" href="#"><i class="icon-blank"></i> United</a></li>
					</ul>
				</div>
				<!-- theme selector ends -->
				
				<!-- user dropdown starts -->
				<div class="btn-group pull-right" >
					<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
						<i class="icon-user"></i>
                        <span class="hidden-phone">
                            <?php
                            	echo Yii::app()->user->id;
                            ?>
                        </span>
						<span class="caret"></span>
					</a>
					<ul class="dropdown-menu">
                        <li><a href="<?php echo Yii::app()->createUrl('UserAdmin/changePassword'); ?>">Đổi mật khẩu</a></li>
						<li><a href="<?php echo Yii::app()->createUrl('Browser/Logout'); ?>">Thoát</a></li>
					</ul>
				</div>
				<!-- user dropdown ends -->
				
				<div class="top-nav nav-collapse">
					<ul class="nav">
						<li>
                            <?php
                            	echo CHtml::link('Visit Site',DOMAIN);
                            ?>
                        </li>
						<li>
							<form class="navbar-search pull-left">
								<input placeholder="Search" class="search-query span2" name="query" type="text"/>
							</form>
						</li>
                        <li>
							<a style="font-family: 'Shojumaru', cursive, Arial, serif;font-size: 20px;font-weight: bold;padding-left: 66px;">Nơi hội tụ đam mê công nghệ</a>
						</li>
					</ul>
				</div><!--/.nav-collapse -->
			</div>
		</div>
	</div>
	<!-- topbar ends -->
		<div class="container-fluid">
		<div class="row-fluid">
		   <?php
           	    include('includes/AdminMenu.php');
           ?>
			<noscript>
				<div class="alert alert-block span10">
					<h4 class="alert-heading">Warning!</h4>
					<p>You need to have <a href="http://en.wikipedia.org/wiki/JavaScript" target="_blank">JavaScript</a> enabled to use this site.</p>
				</div>
			</noscript>
            
			<div id="content" class="span10">
			<!-- content starts -->
                <!-- Thao tác -->
    		    <div id="sidebar">
                	<?php
                		$this->beginWidget('zii.widgets.CPortlet', array(
                			//'title'=>'<h1>Thao tác</h1>',
                		));
                		$this->widget('zii.widgets.CMenu', array(
                			'items'=>$this->menu,
                			'htmlOptions'=>array('class'=>'operations'),
                		));
                		$this->endWidget();
                	?>
            	</div><!-- sidebar -->
                <!-- Thao tác -->
            <?php
                echo $content;	
            ?>
            <!-- content ends -->
			</div><!--/#content.span10-->
			</div><!--/fluid-row-->
				
		<hr/>

		<div class="modal hide fade" id="myModal">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">Ã—</button>
				<h3>Settings</h3>
			</div>
			<div class="modal-body">
				<p>Here settings can be configured...</p>
			</div>
			<div class="modal-footer">
				<a href="#" class="btn" data-dismiss="modal">Close</a>
				<a href="#" class="btn btn-primary">Save changes</a>
			</div>
		</div>

		<footer>
			<p class="pull-right">Xây dựng bởi: <a href="http://moinhat.vn">Mới1 J.S.C</a></p>
		</footer>
		
	</div><!--/.fluid-container-->

	<!-- external javascript
	================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->

    <?php
        //jQuery
    	Yii::app()->getClientScript()->registerScriptFile(ADMIN_JS_FOLDER.'jquery-1.7.2.min.js');
        //jQuery UI
        Yii::app()->getClientScript()->registerScriptFile(ADMIN_JS_FOLDER.'jquery-ui-1.8.21.custom.min.js');
        //<!-- transition / effect library -->
        Yii::app()->getClientScript()->registerScriptFile(ADMIN_JS_FOLDER.'bootstrap-transition.js');
        //<!-- alert enhancer library -->
        Yii::app()->getClientScript()->registerScriptFile(ADMIN_JS_FOLDER.'bootstrap-alert.js');
        //<!-- modal / dialog library -->
        Yii::app()->getClientScript()->registerScriptFile(ADMIN_JS_FOLDER.'bootstrap-modal.js');
        //<!-- custom dropdown library -->
	    Yii::app()->getClientScript()->registerScriptFile(ADMIN_JS_FOLDER.'bootstrap-dropdown.js');
        //<!-- scrolspy library -->
        Yii::app()->getClientScript()->registerScriptFile(ADMIN_JS_FOLDER.'bootstrap-scrollspy.js');
        //<!-- library for creating tabs -->
        Yii::app()->getClientScript()->registerScriptFile(ADMIN_JS_FOLDER.'bootstrap-tab.js');
        //<!-- library for advanced tooltip -->
        Yii::app()->getClientScript()->registerScriptFile(ADMIN_JS_FOLDER.'bootstrap-tooltip.js');
        //<!-- popover effect library -->
        Yii::app()->getClientScript()->registerScriptFile(ADMIN_JS_FOLDER.'bootstrap-popover.js');
        //<!-- button enhancer library -->
        Yii::app()->getClientScript()->registerScriptFile(ADMIN_JS_FOLDER.'bootstrap-button.js');
        //<!-- accordion library (optional, not used in demo) -->
        Yii::app()->getClientScript()->registerScriptFile(ADMIN_JS_FOLDER.'bootstrap-collapse.js');
        //<!-- carousel slideshow library (optional, not used in demo) -->
        Yii::app()->getClientScript()->registerScriptFile(ADMIN_JS_FOLDER.'bootstrap-carousel.js');
        //<!-- autocomplete library -->
        Yii::app()->getClientScript()->registerScriptFile(ADMIN_JS_FOLDER.'bootstrap-typeahead.js');
        //<!-- tour library -->
        Yii::app()->getClientScript()->registerScriptFile(ADMIN_JS_FOLDER.'bootstrap-tour.js');
        //<!-- library for cookie management -->
        Yii::app()->getClientScript()->registerScriptFile(ADMIN_JS_FOLDER.'jquery.cookie.js');
        //<!-- calander plugin -->
        Yii::app()->getClientScript()->registerScriptFile(ADMIN_JS_FOLDER.'fullcalendar.min.js');
        //<!-- data table plugin -->
        Yii::app()->getClientScript()->registerScriptFile(ADMIN_JS_FOLDER.'jquery.dataTables.min.js');
        //<!-- chart libraries start -->
	    Yii::app()->getClientScript()->registerScriptFile(ADMIN_JS_FOLDER.'excanvas.js');
        Yii::app()->getClientScript()->registerScriptFile(ADMIN_JS_FOLDER.'jquery.flot.min.js');
        Yii::app()->getClientScript()->registerScriptFile(ADMIN_JS_FOLDER.'jquery.flot.pie.min.js');
        Yii::app()->getClientScript()->registerScriptFile(ADMIN_JS_FOLDER.'jquery.flot.stack.js');
        Yii::app()->getClientScript()->registerScriptFile(ADMIN_JS_FOLDER.'jquery.flot.resize.min.js');
	    //<!-- chart libraries end -->
        //<!-- select or dropdown enhancer -->
        Yii::app()->getClientScript()->registerScriptFile(ADMIN_JS_FOLDER.'jquery.chosen.min.js');
        //<!-- checkbox, radio, and file input styler -->
        Yii::app()->getClientScript()->registerScriptFile(ADMIN_JS_FOLDER.'jquery.uniform.min.js');
        //<!-- plugin for gallery image view -->
        Yii::app()->getClientScript()->registerScriptFile(ADMIN_JS_FOLDER.'jquery.colorbox.min.js');
        //<!-- rich text editor library -->
        Yii::app()->getClientScript()->registerScriptFile(ADMIN_JS_FOLDER.'jquery.cleditor.min.js');
        //<!-- notification plugin -->
        Yii::app()->getClientScript()->registerScriptFile(ADMIN_JS_FOLDER.'jquery.noty.js');
        //<!-- file manager library -->
        Yii::app()->getClientScript()->registerScriptFile(ADMIN_JS_FOLDER.'jquery.elfinder.min.js');
        //<!-- star rating plugin -->        
        Yii::app()->getClientScript()->registerScriptFile(ADMIN_JS_FOLDER.'jquery.raty.min.js');
        //<!-- for iOS style toggle switch -->
        Yii::app()->getClientScript()->registerScriptFile(ADMIN_JS_FOLDER.'jquery.iphone.toggle.js');
        //<!-- autogrowing textarea plugin -->
        Yii::app()->getClientScript()->registerScriptFile(ADMIN_JS_FOLDER.'jquery.autogrow-textarea.js');
        //<!-- multiple file upload plugin -->
        Yii::app()->getClientScript()->registerScriptFile(ADMIN_JS_FOLDER.'jquery.uploadify-3.1.min.js');
        //<!-- history.js for cross-browser state change on ajax -->
        Yii::app()->getClientScript()->registerScriptFile(ADMIN_JS_FOLDER.'jquery.history.js');
        //<!-- application script for Charisma demo -->
        Yii::app()->getClientScript()->registerScriptFile(ADMIN_JS_FOLDER.'charisma.js');  
    ?>
</body>
</html>
